package productmanagementserver;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {	
	private long id;
	private String userName;
	private String passWord;
	private String email;
	private String address;
	private String role;
		
	public User(){
		
	}
	
	public User(String userName, String passWord, String email, String address,
			String role) {
		super();
		this.userName = userName;
		this.passWord = passWord;
		this.email = email;
		this.address = address;
		this.role = role;
	}
	public User(long id, String userName, String passWord, String email,
			String address, String role) {
		super();
		this.id = id;
		this.userName = userName;
		this.passWord = passWord;
		this.email = email;
		this.address = address;
		this.role = role;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassWord() {
		return passWord;
	}
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	
	@Override
	public String toString() {
		return this.getUserName();
	}

}
